package com.example.model.payment;

import com.example.model.BaseEntity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

public class Payment extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    Long paymentId;
    String paymentType;
    LocalDateTime paymentDate;
    String tradeNo;
    String buyerId;

    private static final String PAYMENT_ID = "pay-";

    public Payment() {
    }

    public Payment(String paymentType, LocalDateTime paymentDate) {
        this.paymentType = paymentType;
        this.paymentDate = paymentDate;
    }

    public Long getPaymentId() {
        return paymentId;
    }

    public void setPaymentId(Long paymentId) {
        this.paymentId = paymentId;
    }

    public String getPaymentType() {
        return paymentType;
    }

    public void setPaymentType(String paymentType) {
        this.paymentType = paymentType;
    }

    public LocalDateTime getPaymentDate() {
        return paymentDate;
    }

    public void setPaymentDate(LocalDateTime paymentDate) {
        this.paymentDate = paymentDate;
    }

    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }

    public String getBuyerId() {
        return buyerId;
    }

    public void setBuyerId(String buyerId) {
        this.buyerId = buyerId;
    }

    @Override
    public String toString() {
        return "Payment{" +
                "paymentId=" + paymentId +
                ", paymentType='" + paymentType + '\'' +
                ", paymentDate=" + paymentDate +
                ", tradeNo='" + tradeNo + '\'' +
                ", buyerId='" + buyerId + '\'' +
                '}';
    }
}
